/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ideal.log;


import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

/**
 *
 * @author Huyu
 */
public class Log {
    public static Logger logger;
    public static void init(String dir){//log4j.properties
        String Path = dir + "log4j.properties";
        PropertyConfigurator.configure(Path);
        logger = Logger.getRootLogger();
    }
}
